c:requestchoice >env:answer "Error" "Existing installation found, please*nremove it and run this installer again!" "Sorry"
quit
endif
else
c:requestchoice >env:answer "Error" "S:User-Startup not found!" "Hmmm"
quit
endif
assign InstallerPath: "" >nil:
if $rc eq 20
c:requestchoice >env:answer "Fatal error" "This installer cannot handle spaces in path names!*nHopefully this will be fixed in the future...?" "Sorry :("
quit
endif
lab MIAMI
assign >nil: Miami: EXISTS
if warn
c:requestchoice >env:answer "MailCheck Version 1.3" "I cannot find an assign for Miami!*n*nShow me where it is..." "Okay"
c:requestfile >env:miamipath TITLE="Location of Miami" NOICONS DRAWERSONLY
if $rc not eq 0
skip ASKQUIT1
else
assign Miami: $miamipath >nil:
if $rc eq 20
c:requestchoice >env:answer "Fatal error" "This installer cannot handle spaces in path names!*nHopefully this will be fixed in the future...?" "Sorry :("
quit
endif
endif
else
cd Miami:
cd >env:miamipath
endif
lab MAILCHECK
cd Sys:
c:requestchoice >env:answer "MailCheck Version 1.3" "Please select destination directory for MailCheck*n*nIf not present, a directory will be created here." "Okay"
c:requestfile >env:mcparent TITLE="Location of MailCheck" NOICONS DRAWERSONLY
if $rc not eq 0
skip ASKQUIT2
else
assign MailCheckParent: $mcparent >nil:
if $rc eq 20
c:requestchoice >env:answer "Fatal error" "This installer cannot handle spaces in path names!*nHopefully this will be fixed in the future...?" "Sorry :("
quit
endif
cd MailCheckParent:
endif
if not exists MailCheck
makedir MailCheck
endif
cd MailCheck
if not exists C
makedir C
endif
if not exists Docs
makedir Docs
endif
cd >env:mailcheckpath
assign MailCheck: $mailcheckpath >nil:
if $rc eq 20
c:requestchoice >env:answer "Fatal error" "This installer cannot handle spaces in path names!*nHopefully this will be fixed in the future...?" "Sorry :("
quit
endif
copy InstallerPath:data/s/#?check s: quiet clone
copy InstallerPath:data/#? MailCheck: all quiet clone